HowTo Start Zope Automatically in Mac OS X 10.4.x |
Created by isalsberg . Last modified 2006-07-11 16:51:26. |
This will show you the steps to start Zope at booting time, using the StartupItems directory with Mac OS X 10.4 |
To Startup Zope at boot time using Mac OS X StartupItems, the
tricky thing is to change the effective-user in your instance configuration
file. 2. As system administrator, create the Folder Zope under
/Library/StartupItems/
imac-g5:/Library/StartupItems isaac$ sudo mkdir Zope 3. Once the Folder has been created, the permissions should look like: total 0
drwxr-xr-x 5
root wheel 170 Jul 7 17:50 Zope 4. Change to the recently created directory
"/Library/StartupItems/Zope" 5. As administrator, create a startup script named Zope, with 755
permissions and with this content (Do NOT FORGET to change “/usr/local/Zope_Instance_280”
for YOUR instance PATH):
#!/bin/sh 6. In the same Zope folder, create the file "StartupParameters.plist"
using the output from the more command. Make the file with permissions 644:
{ 7. Once you have created the two files, the
/Library/StartupItems/Zope folder should look like: total 24
-rw-r--r-- 1
root wheel 320 Jul 7 13:54
StartupParameters.plist
-rwxr-xr-x 1
root wheel 1546 Jul 7 17:50 Zope 8. Last but not least, go to the etc folder where your Zope
instance was created and change in the "zope.conf" file the
effective-user directive, otherwise the startup script will NOT work. By
default, this directive is unset.
# Default: unset 9. Now, reboot your MAC and your Zope instance should
automatically startup. That's it. |